<script>
	export default {

		globalData: {
			bottomFixedNeeded: false,
			bottomDistance: 0
		},
		onLaunch: function() {
			uni.hideTabBar({})
			uni.getSystemInfo({
				success: res => {
					console.log(res)
					const {
						safeArea,
						screenHeight
					} = res
					if (safeArea.bottom !== screenHeight) {
						this.globalData.bottomFixedNeeded = true
						this.globalData.bottomDistance = screenHeight - safeArea.bottom
					}
				}
			})
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";

	img {
		width: 100%;
		vertical-align: middle;
	}
</style>
